package com.demo.enums;

/**
 * 诊断结果0诊断中 1.诊断完成
 *
 */
public enum DvtDiagnoseResultEnum {
    DIAGNOSE_IN(0, "诊断中"),
    DIAGNOSE_FINISH(1, "诊断完成");

    private int value;
    private String desc;

    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    DvtDiagnoseResultEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static DvtDiagnoseResultEnum getByValue(Integer value) {
        for (DvtDiagnoseResultEnum item : values()) {
            if (item.getValue() == value) {
                return item;
            }
        }
        return null;
    }
}
